package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;
import org.springframework.web.multipart.MultipartFile;

public interface ProductService {

    public ServerResponse selectProductByKeywords(String keyword, Integer categoryId, int pageSize, int pageNum, String orderBy);

    public String uploadFile(MultipartFile file, String path);

    public ServerResponse saveOrUpdate(Product product);

    public ServerResponse updateStatus(Integer status,Integer categoryId);

    public  ServerResponse manageDetail(Integer productId);

    public ServerResponse  searchProduct(Integer productId,String productName,Integer pageNum,Integer pageSize);

    public ServerResponse selectProductList(Integer pageNum,Integer pageSize);
}
